package com.cloud.mapper;

import com.cloud.entity.Warehouse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author .
 * created in 2020/1/16 18:37
 */

@Repository
public interface WarehouseMapper {

    int addWarehouse(Warehouse warehouse);

    int getAllWarehouseCount(@Param("id") String id);

    List<Warehouse> findAllByPage(@Param("page") int page, @Param("limit") int limit, @Param("id") String id);

}
